package net.sourceforge.jweb.json;

//primay name is not used
public class JSONPrimary extends JSONElement {
	private Object value;

	public JSONPrimary(Object value) {
		super();
		this.value = value;
	}

	public final Object getValue() {
		return value;
	}

	public final void setValue(Object value) {
		this.value = value;
	}

	@Override
	public String toString() {
		if (value instanceof String) {
			return quote(value.toString(), this.isQuotoValue() ? this.getQuotoString() : "", isStrict());
		}
		return value.toString();
	}
}
